package com.easy.service.impl;

import com.easy.bean.Orderaddress;
import com.easy.dao.OrderaddressDao;
import com.easy.service.IOrderaddressService;
import com.easy.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderaddressService implements IOrderaddressService {
    @Autowired
    OrderaddressDao orderaddressDao;

    @Override
    public int addOrderaddress(Orderaddress orderaddress) {
        return orderaddressDao.addOrderaddress(orderaddress);
    }

    @Override
    public int editOrderaddress(Orderaddress orderaddress) {
        return orderaddressDao.editOrderaddress(orderaddress);
    }

    @Override
    public int deleteOrderaddress(int orderid) {
        return orderaddressDao.deleteOrderaddress(orderid);
    }

    @Override
    public List<Orderaddress> selectOrderaddress(Page page, String text) {
        return orderaddressDao.selectOrderaddress(page,text);
    }


    @Override
    public Orderaddress getOrderaddressById(int orderid) {
        return orderaddressDao.getOrderaddressById(orderid);
    }

    @Override
    public int OrderaddressCount(String text) {
        return orderaddressDao.OrderaddressCount(text);
    }
}
